package org.example.controller;

import org.example.model.common.dtos.ResponseResult;
import org.example.model.common.vos.record.SearchRecordVo;
import org.example.service.RecordBasicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 日志管理
 */
@CrossOrigin
@RestController
@RequestMapping("/record-basic")
public class RecordBasicController {

    @Autowired
    private RecordBasicService recordBasicService;

    /**
     * 根据条件（登录账号模糊查询，创建时间范围查询）分页查询
     */
    @GetMapping("/record-list/{pageIndex}/{pageSize}")
    public ResponseResult SelectPageByConditions(SearchRecordVo searchRecordVo, @PathVariable int pageIndex, @PathVariable int pageSize) {
        return ResponseResult.okResult(recordBasicService.SelectPageByConditions(searchRecordVo,pageIndex,pageSize));
    }
}
